package com.yoyo.itravel.service;

import com.yoyo.itravel.bean.Sight;
import com.yoyo.itravel.bean.TicketTypeDetail;
import com.yoyo.itravel.bean.User;
import com.yoyo.itravel.exceptions.TicketTypeDetailException;

import java.util.List;

/**
 * @Description 景点门票具体类型操作服务层接口
 *
 * @author HZX
 * @date 2020/5/13 20:34
 */
public interface ITicketTypeDetailService {

    /**
     * @Description 查找所有的景点门票具体类型
     *
     * @param
     * @return java.util.List<cn.hut.travel.bean.TicketTypeDetail>
     */
    List<TicketTypeDetail> findAll() throws TicketTypeDetailException;

    /**
     * @Description 通过具体门票类型id获得具体门票类型对象
     *
     * @param detailTypeId
     * @return cn.hut.travel.bean.TicketTypeDetail
     */
    TicketTypeDetail findByTicketDetailTypeId(String detailTypeId) throws TicketTypeDetailException;

    /**
     * @Description 通过门票具体类型id查找对应的景点对象
     *
     * @param detailTypeId
     * @return User
     */
    Sight findSight(String detailTypeId) throws TicketTypeDetailException;
}
